﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Temas/MasterPage.Master" AutoEventWireup="true" CodeBehind="AsignarLista.aspx.cs" Inherits="Talento21.Pages.Evaluadores.AsignarLista" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

 <fieldset class="form-horizontal">
        <legend>Asginar Trabajadores</legend>
        <div class="well form-inline">
                <label>
                    Evaluador:
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
          </label>
         </div>
          
        
        <asp:Repeater ID="Repeater2" runat="server" DataSourceID="ObjectDataSource1">
            <HeaderTemplate>
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th>
                                Rut
                            </th>
                            <th>
                                Nombre
                            </th>
                            <th>
                                Apellido Paterno
                            </th>
                            <th>
                                Apellido Materno
                            </th>
                            <th>
                                Telefono
                            </th>
                            <th>
                                Direccion
                            </th>
                            <th>
                                Seleccionar
                            </th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                            <%# Eval("Rut") %>-<%# Eval("Dv") %></td>
                    <td>
                        <%#  StringHelper.ToUpperCase(Eval("Nombre"))%>
                    </td>
                    <td>
                        <%# StringHelper.ToUpperCase(Eval("ApellidoPaterno")) %>
                    </td>
                    <td>
                        <%# StringHelper.ToUpperCase(Eval("ApellidoMaterno")) %>
                    </td>
                    <td>
                        <%# StringHelper.ToUpperCase( Eval("FonoParticular")) %>
                    </td>
                    <td>
                        <%# StringHelper.ToUpperCase(Eval("DireccionParticular")) %>
                    </td>
                    <td>
                        <input id="Checkbox1" name="seleccion" type="checkbox" value="<%# Eval("Rut") %>" />
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody> </table>

                  <div class="form-actions">
                  <asp:LinkButton ID="InsertButton" CssClass="btn btn-primary" runat="server" CausesValidation="True"
                    CommandName="Insert" Text="Asignar" 
        oncommand="InsertButton_Command" />
                </div>
              
            </FooterTemplate>
        </asp:Repeater>
    </fieldset>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="ObtenerTrabajadoresSinEvaluador"
        TypeName="Talento21.Negocio.Servicio.SrvEvaluador">
        <SelectParameters>
            <asp:SessionParameter Name="rutEmpresa" SessionField="Emp_Rut" Type="Int32" />
            <asp:SessionParameter Name="idEvaludaor" SessionField="idEvaluador" 
                Type="Int32" />
        </SelectParameters>
        
    </asp:ObjectDataSource>

      
        


</asp:Content>
